import request from '@/utils/request'

// 获取题库列表
export const getBankList = (params) => {
  return request({
    url: '/bank/list',
    method: 'get',
    params
  })
}

// 获取题库详情
export const getBankDetail = (bankId) => {
  return request({
    url: `/bank/${bankId}`,
    method: 'get'
  })
}

// 获取所有题库列表（用于下拉选择）
export const getAllBanks = () => {
  return request({
    url: '/bank/all',
    method: 'get'
  })
}
